﻿using UnityEngine;
using System.Collections;

public class ExitButtonClick : MonoBehaviour {
   
    public Sprite normalState;
    public Sprite onHover;
    SpriteRenderer sr;

    void Start()
    {
        sr = this.GetComponent<SpriteRenderer>();
    }


	void OnMouseDown()
    {
        sr.sprite = onHover;
    }

    void OnMouseUp()
    {
        sr.sprite = normalState;
    }

}
